<template>
  <div style="background-color: bisque;">
    <h2>BororwTest组件</h2>
    <AdminBorrowListView>
      <template v-slot="data">
        <input type="button" value="修改" @click="upBorrow(data)" class="btn btn-primary">      
      </template>
    </AdminBorrowListView>
  </div>
</template>

<script setup lang="ts">

import AdminBorrowListView from './AdminBorrowListView.vue'

import {onMounted, reactive,toRefs} from 'vue';

import { useRouter } from 'vue-router';

import axios from 'axios';

//路由
let router = useRouter();

//修改
const upBorrow = (data:any)=>{
  console.log(1111,data);
  
  router.push({
    path:'/main/adminUpdateBorrow',
    query:{
      B_Id:data.data
    }
  })
}

</script>

<style scoped>

</style>